package bean.Being;


/**
 * 测试Spring使用静态工厂方法创建bean实例
 */
public class Dog implements Being {
    private String msg;

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    public void testBeing() {
        System.out.println(msg+", it is a dog");
    }
}
